<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <script src='../../../assets/js/jquery-2.0.3.min.js'></script>
<style type="text/css"> 
 .divAll{ 
   width:800px; 
   font-family:'黑体'; 
   margin:50px auto; 
   }
 #titles{ 
   font-weight:bold; 
   font-size:18px; 
   height:50px; 
   line-height:50px; 
   background:#FFF9F3; 
   text-align:center;  
   border:1px solid #CCC;; 
   }
 #contents{ 
    margin-top:20px; 
    background:#FFF9F3; 
    border:1px solid #CCC;; 
    }
  #form-itemGroup{ 
   padding:10px;  
    }
  #form-itemGroup label{ 
    display:inline-block; 
    width:100px; 
    height:32px; 
    line-height:32px; 
    color:#666; 
    text-align:right; 
    }
  #form-itemGroup .userName{ 
    width:200px; 
    height:40px; 
    line-height:40px; 
    border:1px solid #CCC; 
    }  
  #form-itemGroup .default{ 
    width:200px; 
    height:32px; 
    line-height:32px; 
    color:#999; 
    } 
  #form-itemGroup .error{ 
    height:32px; 
    line-height:32px; 
    color:#F00; 
    }
  #form-itemGroup .success{ 
    height:32px; 
    line-height:32px; 
    color:#096; 
    }  
  .divBtn{ 
    margin-top:20px; 
    margin-left:200px; 
    width:100px; 
    height:32px; 
    line-height:32px; 
    background-color:#F93; 
    margin-bottom:10px; 
    color:#ffffff; 
    font-weight:bold; 
    border:none; 
    } 
</style>

<script type="text/javascript">
            function checkStr(){
                var role_name = document.getElementById("role_name").value.trim();
                if(role_name == ""){
                    alert("角色 不能为空!请输入正确的角色名！");
                    return false;
                }
                }
</script>



  <div class="breadcrumbs" id="breadcrumbs">
	<script type="text/javascript">
		try {
			ace.settings.check('breadcrumbs', 'fixed')
		} catch (e) {}
	</script>

	<ul class="breadcrumb">
		<li><i class="icon-home home-icon"></i> <a href="../../../index.jsp">首页</a>
		</li>

		<li>角色管理</li>
		<li class="active">添加角色</li>
	</ul>
	<!-- .breadcrumb -->

	<div class="nav-search" id="nav-search">
		<form class="form-search">
			<span class="input-icon"> <input type="text"
				placeholder="Search ..." class="nav-search-input"
				id="nav-search-input" autocomplete="off" /> <i
				class="icon-search nav-search-icon"></i>
			</span>
		</form>
	</div>
	<!-- #nav-search -->
</div>


<div class="page-content">
	<div class="page-header">
		<h1>
			添加角色
		  </h1>
	  </div>
              <div > 
				   <div> 
				   <form action="#" method="post" onsubmit="return checkStr()"> 
				    <div id="form-itemGroup">
				      <label for="userName">角色名：</label> 
				      <input type="text" id="role_name"  name="role_name" required  style="width: 377px;height: 35px;"/> 
				    </div> 
				  
				    <div id="form-itemGroup"> 
				      <label for="userPhone">备注：</label> 
				      <textarea rows="5" cols="50"  name="userDescription">
				      </textarea>
				      
				    </div>
				     <br>
				    <div style="margin-left: 12%;"> 
				     <button type="submit" class="btn btn-primary">保存</button>
				     <button type="button" class="btn btn-primary">返回</button>  
				    </div> 
				   </form> 
				   </div> 
			  </div>

			
		
	</div>
	<!-- /.row -->

